import request from '@/utils/request'
// 分页查询
export const getlist = (params) => request.get('/api/goodsType/page', { params })
// 新增id
export const getCode = () => request.get('api/codeFactory/next/HPLX')
// 新增接口
export const add = (data) => request.post('api/goodsType', data)
// 删除
export const del = (id) => request.delete('api/goodsType', { params: { 'ids[]': id } })
// xiugai
export const edit = (data) => request.put('api/goodsType', data)
// 修改需要的数据
export const editinfo = id => request.get(`api/goodsType/${id}`)
